home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / msvc4.mak < prev    next >
Encoding:
Makefile  |  1997-06-20  |  8.5 KB  |  252 lines

  1. #    Copyright (C) 1991-1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # msvc4.mak
  16. # makefile for Microsoft Visual C++ 4.1, Windows NT or Windows 95 platform.
  17. #   Does NOT build gs16spl.exe, which is 16-bit and is used under Win32s.
  18. #   You will need BC++ or an old 16-bit version of MSVC++ for gs16spl.exe.
  19. #
  20. # Optimization /O2 seems OK with MSVC++ 4.1.
  21. # Created 1997-01-24 by Russell Lang from MSVC++ 2.0 makefile.
  22. # Enhanced 97-05-15 by JD
  23. # Common code factored out 1997-05-22 by L. Peter Deutsch.
  24.  
  25. # ------------------------------- Options ------------------------------- #
  26.  
  27. ###### This section is the only part of the file you should need to edit.
  28.  
  29. # ------ Generic options ------ #
  30.  
  31. # Define the directory that will hold documentation at runtime.
  32.  
  33. GS_DOCDIR=c:/gs
  34.  
  35. # Define the default directory/ies for the runtime initialization and
  36. # font files.  Separate multiple directories with ';'.
  37. # Use / to indicate directories, not \.
  38. # MSVC will not allow \'s here because it sees '\;' CPP-style as an
  39. # illegal escape.
  40. GS_LIB_DEFAULT=.;c:/gs/lib;c:/gs/fonts
  41.  
  42. # Define whether or not searching for initialization files should always
  43. # look in the current directory first.  This leads to well-known security
  44. # and confusion problems, but users insist on it.
  45. # NOTE: this also affects searching for files named on the command line:
  46. # see the "File searching" section of use.txt for full details.
  47. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  48.  
  49. SEARCH_HERE_FIRST=1
  50.  
  51. # Define the name of the interpreter initialization file.
  52. # (There is no reason to change this.)
  53.  
  54. GS_INIT=gs_init.ps
  55.  
  56. # Choose generic configuration options.
  57.  
  58. # Setting DEBUG=1 includes debugging features (-Z switch) in the code.
  59. # Code runs substantially slower even if no debugging switches are set,
  60. # and also takes about another 25K of memory.
  61.  
  62. DEBUG=0
  63.  
  64. # Setting TDEBUG=1 includes symbol table information for the debugger,
  65. # and also enables stack checking.  Code is substantially slower and larger.
  66.  
  67. TDEBUG=0
  68.  
  69. # Setting NOPRIVATE=1 makes private (static) procedures and variables public,
  70. # so they are visible to the debugger and profiler.
  71. # No execution time or space penalty, just larger .OBJ and .EXE files.
  72.  
  73. NOPRIVATE=0
  74.  
  75. # Define the name of the executable file.
  76.  
  77. GS=gswin32
  78. GSCONSOLE=gswin32c
  79. GSDLL=gsdll32
  80.  
  81. # To build two small executables and a large DLL use MAKEDLL=1
  82. # To build two large executables use MAKEDLL=0
  83.  
  84. MAKEDLL=1
  85.  
  86. # Define the directory where the IJG JPEG library sources are stored,
  87. # and the major version of the library that is stored there.
  88. # You may need to change this if the IJG library version changes.
  89. # See jpeg.mak for more information.
  90.  
  91. JSRCDIR=jpeg-6a
  92. JVERSION=6
  93.  
  94. # Define the directory where the PNG library sources are stored,
  95. # and the version of the library that is stored there.
  96. # You may need to change this if the libpng version changes.
  97. # See libpng.mak for more information.
  98.  
  99. PSRCDIR=libpng
  100. PVERSION=96
  101.  
  102. # Define the directory where the zlib sources are stored.
  103. # See zlib.mak for more information.
  104.  
  105. ZSRCDIR=zlib
  106.  
  107. # Define the configuration ID.  Read gs.mak carefully before changing this.
  108.  
  109. CONFIG=
  110.  
  111. # Define any other compilation flags.
  112.  
  113. CFLAGS=
  114.  
  115. # ------ Platform-specific options ------ #
  116.  
  117. # Define the drive, directory, and compiler name for the Microsoft C files.
  118. # COMPDIR contains the compiler and linker (normally \msdev\bin).
  119. # INCDIR contains the include files (normally \msdev\include).
  120. # LIBDIR contains the library files (normally \msdev\lib).
  121. # COMP is the full C compiler path name (normally \msdev\bin\cl).
  122. # COMPCPP is the full C++ compiler path name (normally \msdev\bin\cl).
  123. # COMPAUX is the compiler name for DOS utilities (normally \msdev\bin\cl).
  124. # RCOMP is the resource compiler name (normallly \msdev\bin\rc).
  125. # LINK is the full linker path name (normally \msdev\bin\link).
  126. # Note that when INCDIR and LIBDIR are used, they always get a '\' appended,
  127. #   so if you want to use the current directory, use an explicit '.'.
  128.  
  129. DEVSTUDIO=c:\msdev
  130. COMPBASE=$(DEVSTUDIO)
  131. SHAREDBASE=$(DEVSTUDIO)
  132. COMPDIR=$(COMPBASE)\bin
  133. LINKDIR=$(COMPBASE)\bin
  134. RCDIR=$(SHAREDBASE)\bin
  135. INCDIR=$(COMPBASE)\include
  136. LIBDIR=$(COMPBASE)\lib
  137. COMP=$(COMPDIR)\cl
  138. COMPCPP=$(COMP)
  139. COMPAUX=$(COMPDIR)\cl
  140. RCOMP=$(RCDIR)\rc
  141. LINK=$(LINKDIR)\link
  142.  
  143. # Define the processor architecture. (i386, ppc, alpha)
  144. CPU=i386
  145. #CPU=ppc
  146. #CPU=alpha  # not supported yet - we need someone to tweak
  147.  
  148. !if "$(CPU)"=="i386"
  149. # Define the processor (CPU) type.  (386, 486 or 586)
  150.  
  151. CPU_TYPE=486
  152.  
  153. # Define the math coprocessor (FPU) type.
  154. # Options are -1 (optimize for no FPU), 0 (optimize for FPU present,
  155. # but do not require a FPU), 87, 287, or 387.
  156. # If you have a 486 or Pentium CPU, you should normally set FPU_TYPE to 387,
  157. # since most of these CPUs include the equivalent of an 80387 on-chip;
  158. # however, the 486SX and the Cyrix 486SLC do not have an on-chip FPU, so if
  159. # you have one of these CPUs and no external FPU, set FPU_TYPE to -1 or 0.
  160. # An xx87 option means that the executable will run only if a FPU
  161. # of that type (or higher) is available: this is NOT currently checked
  162. # at runtime.
  163.  
  164. FPU_TYPE=0
  165. !endif
  166.  
  167. !if "$(CPU)"=="ppc"
  168. # Define the processor (CPU) type.  (601, 604 or 620)
  169. CPU_TYPE=601
  170. # Define the math coprocessor (FPU) type.
  171. !if $(CPU_TYPE)>601
  172. FPU_TYPE=2
  173. !else
  174. FPU_TYPE=1
  175. !endif
  176. !endif
  177.  
  178. !if "$(CPU)"=="alpha"
  179. # *** alpha *** This needs fixing
  180. CPU_TYPE=
  181. FPU_TYPE=0
  182. !endif
  183.  
  184. # ------ Devices and features ------ #
  185.  
  186. # Choose the language feature(s) to include.  See gs.mak for details.
  187.  
  188. FEATURE_DEVS=level2.dev pdf.dev ttfont.dev
  189.  
  190. # Choose whether to compile the .ps initialization files into the executable.
  191. # See gs.mak for details.
  192.  
  193. COMPILE_INITS=0
  194.  
  195. # Choose whether to store band lists on files or in memory.
  196. # The choices are 'file' or 'memory'.
  197.  
  198. BAND_LIST_STORAGE=file
  199.  
  200. # Choose which compression method to use when storing band lists in memory.
  201. # The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
  202. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  203.  
  204. BAND_LIST_COMPRESSOR=zlib
  205.  
  206. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  207. # See gs.mak and sfxfd.c for more details.
  208.  
  209. FILE_IMPLEMENTATION=stdio
  210.  
  211. # Choose the device(s) to include.  See devs.mak for details.
  212.  
  213. DEVICE_DEVS=mswindll.dev mswinprn.dev mswinpr2.dev
  214. DEVICE_DEVS2=epson.dev eps9high.dev eps9mid.dev epsonc.dev ibmpro.dev
  215. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  216. DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  217. DEVICE_DEVS5=djet500c.dev declj250.dev lj250.dev jetp3852.dev r4081.dev lbp8.dev
  218. DEVICE_DEVS6=st800.dev stcolor.dev bj10e.dev bj200.dev m8510.dev necp6.dev bjc600.dev bjc800.dev
  219. DEVICE_DEVS7=t4693d2.dev t4693d4.dev t4693d8.dev tek4696.dev
  220. DEVICE_DEVS8=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev
  221. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  222. DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  223. DEVICE_DEVS11=bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev tiff12nc.dev tiff24nc.dev
  224. DEVICE_DEVS12=psmono.dev bit.dev bitrgb.dev bitcmyk.dev
  225. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  226. DEVICE_DEVS14=jpeg.dev jpeggray.dev
  227. DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
  228.  
  229. # ---------------------------- End of options ---------------------------- #
  230.  
  231. # Define the name of the makefile -- used in dependencies.
  232.  
  233. MAKEFILE=msvc4.mak msvccom.mak wincom.mak
  234.  
  235. # Set up LIB enviromnent variable to include LINKDIR. This is a hack for
  236. # MSVC4.x, which doesn't have compiler switches to do the deed
  237.  
  238. !ifdef LIB
  239. LIB=$(LIBDIR);$(LIB)
  240. !else
  241. LINK_SETUP=set LIB=$(LIBDIR)
  242. CCAUX_SETUP=$(LINK_SETUP)
  243. !endif
  244.  
  245. !include msvccom.mak
  246.  
  247.  
  248. # end of makefile
  249.